#ifndef _buzzer_h_
#define _buzzer_h_
#include "zf_driver_gpio.h"

#define BUZZER_PIN P00_2

#define buzzer_on() gpio_set_level(BUZZER_PIN, 1)
#define buzzer_off() gpio_set_level(BUZZER_PIN, 0)
#define buzzer_toggle() gpio_toggle_level(BUZZER_PIN)

void buzzer_init(void);
void BuzzerSet(uint8_t count, uint8_t tick);
void BuzzerTask(void);

#endif
